package com.erp.gather.mapper;

import com.erp.gather.domain.ErpCollectProductOptimize;
import com.erp.gather.domain.vo.ErpCollectProductOptimizeVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 采集商品优化Mapper接口
 *
 * @author erp
 * @date 2023-03-28
 */
public interface ErpCollectProductOptimizeMapper extends BaseMapperPlus<ErpCollectProductOptimizeMapper, ErpCollectProductOptimize, ErpCollectProductOptimizeVo> {

    ErpCollectProductOptimize queryByOptimizePic(@Param("optimizePic") String optimizePic,@Param("collectProductId") Long collectProductId);

    List<ErpCollectProductOptimize> selectByIds(@Param("idList") List<String> idList);

    ErpCollectProductOptimize getOptimizePicByCollectProductId(@Param("collectProductId") Long collectProductId,
                                                               @Param("img") String img,
                                                               @Param("type") Integer type);

    ErpCollectProductOptimize errorNullOptimize(@Param("img")String img, @Param("collectProductId")Long collectProductId);

    List<String> selectIsOptimizeList();
}
